<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: shanpengfei
  Date: 2019/2/28
  Time: 5:58 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="basePath" value="/zyz"></c:set>

<jsp:include page="../template_header.jsp"></jsp:include>

<style>
    .news-show h1 {
        text-align: center;
    }
    .news-show .time {
        margin: 20px 0;
        text-align: center;
    }
    .news-show .content {
        padding: 0 50px;
    }

</style>

<div class="news-show">
    <h1>${news.title}</h1>
    <div class="time"><fmt:formatDate value="${news.createAt }" pattern="yyyy-MM-dd HH:mm:dd"/></div>
    <div class="content">${news.content}</div>
</div>

<jsp:include page="../template_footer.jsp"></jsp:include>
